<?php if(!isset($_GET["g"])) die(); ?>
<html>
<head>
	<title>Guess who<?php if(isset($_GET["g"])) echo " " . $_GET["g"]; ?>?</title>
	<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
	<!-- Optional theme -->
	<link rel="stylesheet" href="https//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
	<!-- Latest compiled and minified JavaScript -->
	<script src="https//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div id="container">
	<?php
		$ip = $_SERVER['REMOTE_ADDR'];
		$browser = $_SERVER['HTTP_USER_AGENT'];
		$target = $_GET["g"];

		date_default_timezone_set("Asia/Manila");
		$now = date("Y-m-d H:i:s");
		$txt = "[" . $now . "] " . $target . "," . $ip . "," . $browser . PHP_EOL;

		$file = fopen("whoisthis.txt","a+");
		fwrite($file,$txt);
		fclose($file);
	?>
	<h1>IP: <?php echo $ip; ?> <--- Is this yours? <br/>
		Verify <a href="http://adf.ly/7104086/ip-adress.com/ip_tracer/<?php echo $ip; ?>"><b>here</b></a> or <a href="http://adf.ly/s33ec"><b>Here</b></a>
	</h1>
</div>
</body>
</html>